src-prefix := src/
src-y += k_cls.c k_critical.c  k_sem.c k_task.c k_tick.c k_obj.c
src-y += k_errno.c
ifeq ($(CONFIG_OS_PONY), y)
src-y += k_init.c k_mutex.c
endif
src-$(CONFIG_DEFER) += k_defer.c
src-$(CONFIG_IPC_EVENT) += k_event.c
src-$(CONFIG_SOFT_TIMER) += k_timer.c
src-$(CONFIG_IPC_MQ) += k_mq.c
src-$(CONFIG_PROFILE) += k_profile.c
inc-g-y += inc

cflags-l-$(CONFIG_KEIL) += -Wno-typedef-redefinition
cflags-src/k_init.c += -Wno-cast-function-type-mismatch
